package com.tuda.system.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Ys
 * @date 2023年07月13日 10:39
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户登录信息返回")
public class LoginUserResult {

    @ApiModelProperty(name = "id", value = "主键编号", dataType = "Long")
    private Long id;

    @ApiModelProperty(name = "nickName", value = "昵称", dataType = "String")
    private String nickName;

    @ApiModelProperty(name = "phone", value = "手机号", dataType = "String")
    private String phone;

    @ApiModelProperty(name = "avatar", value = "头像", dataType = "String")
    private String avatar;

    @ApiModelProperty(name = "createTime", value = "生成时间", dataType = "Date")
    private Date createTime;

    @ApiModelProperty(name = "wxOpenId", value = "微信OpenId（空则没有绑定客户端微信）", dataType = "String")
    private String wxOpenId;

    @ApiModelProperty(name = "wxUnionId", value = "微信UnionId", dataType = "String")
    private String wxUnionId;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty(name = "userType", value = "0 管理员， 1 业务员，2 站点经办人，3 驾驶员", dataType = "Integer")
    private Integer userType;

}
